
<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

    <meta name="baidu-site-verification" content="code-VBp8jKnHiT" />
    <link rel="icon" href="static/img/favicon.ico">
    <link rel="canonical" href="https://getbootstrap.com/docs/3.4/examples/cover/">

    <title>世界人文</title>

    <!-- Bootstrap core CSS -->
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.16/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.16/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.16/examples/cover/cover.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.16/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.16/assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <div class="site-wrapper" style="background-image: url(static/img/bg.jpg); background-size:100% 100%; ">

      <div class="site-wrapper-inner">

        <div class="cover-container" >

      
          <div class="inner cover">
            <p class="lead">当你奋进时，记得仰望天空，那里有星辰大海。</p>
            <p class="lead">当你停歇时，别忘驻足大地，这里有历史长河。</p>
            <p class="lead">
               <a href="#" class="btn btn-lg btn-default" data-toggle="modal" data-target="#myModal">开启探索之旅</a>
            </p>
          </div>

        </div>

      </div>

    </div>

          <!-- 模态框（Modal） -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-dialog" style="top:20%">
        <div class="modal-content" >
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
            &times;
            </button>
            <h2>
            <label class='label label-default'>login</label>
            </h2>


          </div>
          <div class="modal-body">
            <form role="form" method="post" action="/login">
              <div class="form-group">
                <input type="text" class="form-control"  maxlength="10" name ='username' placeholder="用户名">
              </div>
              <div class="form-group">
                <input type="password" class="form-control"  maxlength="10" name ='password' placeholder="密码">
              </div>
              <div class="checkbox">
                <label class='label label-info'><input type="checkbox" name='check' value="Y">首次登录？(勾选即注册)</label>
              </div>
             <button type="submit" class="btn btn-primary">
              登录
            </button>
            </form>
          </div>
          <div class="modal-footer">


          </div>
        </div><!-- /.modal-content -->
      </div><!-- /.modal -->

    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
    <script>window.jQuery || document.write('<script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.16/assets/js/vendor/jquery.min.js"><\/script>')</script>
    <script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.16/dist/js/bootstrap.min.js"></script>
    <script src="static/js/bootstrap-maxlength.js"></script>
    <script type="text/javascript">
        $('.form-control').maxlength();
        let err = window.location.search.substring(1).split('=')[1]
        if (err ){
          alert(err)
        }
        
    </script>
  </body>
</html>
